import Login from './login.vue'
import Agency from './agency/App.vue'
import Dynamic from './agency/components/dynamic/dynamic.vue'
import DynamicDetail from './agency/components/dynamic/dynamicDetail.vue'
import Declare from './agency/components/declare/declare.vue'
import MyDeclare from './agency/components/declare/myDeclare.vue'
import My from './agency/components/center/my.vue'
import DeclareDetail from './agency/components/declare/declareDetail.vue'
import Changepwd from './agency/components/center/changepwd.vue'
import AgencyIndex from './agency/components/index/index.vue'
import Commission from './agency/components/center/commission.vue'
import CityList from './agency/components/index/cityList.vue'
import PremisesDetail from './agency/components/index/premisesDetail.vue'
import RecommendCustomer from './agency/components/index/recommendCustomer.vue'
import AddCustomer from './agency/components/index/addCustomer.vue'
import IntentionPremisesList from './agency/components/index/intentionPremisesList.vue'
import Appeal from './agency/components/declare/appeal.vue'
import FollowUp from './agency/components/declare/followUp.vue'
import EditCustomer from './agency/components/declare/editCustomer.vue'
import BindCompany from './agency/components/center/bindCompany.vue'
import Register from './agency/register.vue'
import ForgetPassword from './agency/forgetPassword.vue'
import DeclareModel from './agency/components/declare/declareModel.vue'

import Assistant from './assistant/App.vue'
import IndexPage from './assistant/components/index.vue'
import CustomerList from './assistant/components/customer/customerList.vue'
import DistList from './assistant/components/customer/distList.vue'
import CustomerDetails from './assistant/components/customer/customerDetails.vue'
import ModifyPassword from './assistant/components/modify/modifyPassword.vue'
import ModifyProject from './assistant/components/modify/modifyProject.vue'
import Report from './assistant/components/report.vue'
import ConfirmList from './assistant/components/confirmList.vue'
import CompleteNumber from './assistant/components/completeNumber.vue'
import ScanCode from './assistant/components/scanCode.vue'
import ElectronicConfirmation from './assistant/components/electronicConfirmation.vue'
import ComplaintHandling from './assistant/components/complaintHandling.vue'
import Distribution from './assistant/components/distribution.vue'
import ToM2 from './assistant/components/toM2.vue'
import ReportSearch from './assistant/components/reportSearch.vue'
import AssistantForgetPassword from './assistant/assistantForgetPassword.vue'
import BarcodeScan from './assistant/components/barcodeScan.vue'
import CustomerModel from './assistant/components/customer/customerModel.vue'

export default [{
    path: '/agency',
    component: Agency,
    children: [{
        path: '/dynamic',
        component: Dynamic
    },
        {
            path:'/bindCompany',
            component:BindCompany,
            name:'BindCompany'
        },
        {
            path: '/dynamicDetail/:id',
            component: DynamicDetail,
            name: 'DynamicDetail'
        },
        {
            path: '/declare',
            component: Declare
        },
        {
            path: '/myDeclare/:id',
            component: MyDeclare
        },
        {
            path: '/declareDetail/:id',
            name: 'declareDetail',
            component: DeclareDetail
        },
        {
            path: '/appeal',
            name:'appeal',
            component: Appeal
        },
        {
            path: '/followUp',
            name:'followUp',
            component: FollowUp
        },
        {
            path: '/editCustomer',
            name:'editCustomer',
            component: EditCustomer
        },
        {
            path: '/commission',
            component: Commission
        },
        {
            path: '/changepwd',
            component: Changepwd
        },
        {
            path: '/my',
            component: My,
            name:My
        },
        {
            path: '/agencyIndex',
            name:'indexPage',
            component: AgencyIndex
        },
        {
            path: '/cityList',
            component: CityList
        },
        {
            path: '/premisesDetail/:id',
            component: PremisesDetail
        },
        {
            path: '/recommendCustomer/:id',
            component: RecommendCustomer
        },
        {
            path: '/addCustomer',
            name: 'addCustomer',
            component: AddCustomer
        },
        {
            path: '/intentionPremisesList',
            component: IntentionPremisesList
        },
        {
            path:'/declareModel',
            component:DeclareModel,
            name:'DeclareModel'
        }
    ]
},
    {
        path: '/assistant',
        component: Assistant,
        children: [
            {
                path:'/',
                redirect: '/assistantIndex'
            },
            {
                path:'/assistant',
                component: IndexPage
            },
            {
                path:'/report',
                component: Report,
                meta: { keepAlive: true }//需要缓存页面的配置此参数
            },
            {
                path:'/reportSearch',
                component:ReportSearch,
                meta: { keepAlive: true }//需要缓存页面的配置此参数(数据可缓存-针对回退操作)
            },
            {
                path:'/reportSearch',
                component:ReportSearch
            },
            {
                path:'/assistantIndex',
                component: IndexPage
            },
            {
                path:'/confirmList',
                component: ConfirmList
            },
            {
                path:'/customerList',
                name:'customerList',
                component: CustomerList
            },
            {
                path:'/distList',
                component: DistList
            },
            {
                path:'/completeNumber',
                component: CompleteNumber
            },
            {
                path:'/scanCode/:id',
                component: ScanCode
            },
            {
                path:'/modifyPassword',
                component: ModifyPassword
            },
            {
                path:'/modifyProject',
                component: ModifyProject
            },
            {
                path:'/customerDetails/:id',
                component: CustomerDetails
            },
            {
                path:'/electronicConfirmation',
                component: ElectronicConfirmation
            },
            {
                path:'/complaintHandling',
                component: ComplaintHandling
            },
            {
                path:'/distribution/:id',
                component: Distribution
            },
            {
                path:'/toM2/:id',
                component: ToM2
            },
            {
            	path:'/barcodeScan',
            	component:BarcodeScan
            },
            {
                path:'/customerModel',
                name:'CustomerModel',
                component:CustomerModel
            }
        ]
    },
    {
        path: '/login',
        component: Login
    }, {
        path :'/register',
        component:Register
    },
    {
        path:'/assistantForgetPassword',
        component: AssistantForgetPassword
    },
    {
        path:'/forgetPassword',
        component:ForgetPassword
    }]